﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Globalization;

namespace Pocahontas.Sitecore.Mvc
{
	public static class SitecoreHtmlParser
	{
		public static int ConvertCssSizeUnitToInt32(string size)
		{
			size = Regex.Replace(size, @"[^\d]+$", "");

			return Int32.Parse(size, NumberStyles.Integer, CultureInfo.InvariantCulture);
		}
	}
}
